package com.yanfan.energy.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("同环占比出参")
public class EquipmentEnergyBaseResp {

    @ApiModelProperty("type  0：当年/当月 ； -1 ：上年/上月")
    private Integer type;

    @ApiModelProperty("时间 年份/月份")
    private String time;

    @ApiModelProperty("设备id")
    private Long deviceId;

    @ApiModelProperty("设备名称")
    private String deviceName;


    @ApiModelProperty("能源时间详情")
    private List<EnergyDate> energyDateList;


    @Data
    public static class EnergyDate {

        @ApiModelProperty("时间")
        private String createdDate;

        @ApiModelProperty("能源总量")
        private double totalEnergy = 0;

    }


}
